package com.atos.howl.chaos.pdm.mapper;

import com.atos.howl.chaos.pdm.entity.ChaosVideo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

/**
 * @author Howl-Xu
 * @version 1.0.0
 * @Description: 请描述一下这个类文件吧
 * @createTime 2020年02月20日 10:03:00
 */
public interface VideoMapper {
    @Insert("insert into chaos_video(video_path,user_uuid,video_name,video_title,video_summary) VALUES (#{videoPath},#{userUuid},#{videoName},#{videoTitle},#{videoSummary})")
    @Options(useGeneratedKeys=true, keyProperty="videoId", keyColumn="video_id") //该注解用于返回主键
    void saveVideoInfo(ChaosVideo video);

//    @Select("select video_path from chaos_video where video_name = #{videoName}")
//    String getVideoPathByVideoName(String videoName);
}
